package com.alex.ioc.basic;

public class Car {
    private String color;
    private String brand;
    private double length;
    private boolean flag;

    public Car() {
    }

    public Car(String color, String brand, double length, boolean flag) {
        this.color = color;
        this.brand = brand;
        this.length = length;
        this.flag = flag;
    }

    public Car(String color, String brand, double length) {
        this.color = color;
        this.brand = brand;
        this.length = length;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Car{" +
                "color='" + color + '\'' +
                ", brand='" + brand + '\'' +
                ", length=" + length +
                ", flag=" + flag +
                '}';
    }
}
